<%@ Page Language="C#" MasterPageFile="~/DefaultMaster.master" AutoEventWireup="true" CodeFile="CheckOut.aspx.cs" Inherits="CheckOut" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeaderTag" Runat="Server">
<title>Check Out</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Main" Runat="Server">
<h1>Check Out Form</h1>
<form id="CheckOutForm" runat="server">
<b>Billing Info:</b>
<table>
	<tr>
		<td style="WIDTH: 148px">Your FULL Name *</td>
		<td><asp:TextBox id="txtBillingName" runat="server" MaxLength="100"></asp:TextBox>
			<asp:RequiredFieldValidator id="Requiredfieldvalidator1" runat="server" ErrorMessage="Your FULL Name  is REQUIRED" ControlToValidate="txtBillingName"></asp:RequiredFieldValidator></td>
	</tr>
	<tr>
		<td style="WIDTH: 148px">Phone *</td>
		<td><asp:TextBox id="txtBillingPhone" runat="server" MaxLength="25"></asp:TextBox>
			<asp:RequiredFieldValidator id="reqPhone" runat="server" ErrorMessage="Billing Phone # is REQUIRED" ControlToValidate="txtBillingPhone"></asp:RequiredFieldValidator></td>
	</tr>
	<tr>
		<td valign="top" style="WIDTH: 148px">Email *</td>
		<td>
			<p><asp:TextBox id="txtBillingEmail" runat="server" MaxLength="255" Width="222px"></asp:TextBox>
				<asp:RequiredFieldValidator id="reqEmail" runat="server" ErrorMessage="Billing Email  is REQUIRED" ControlToValidate="txtBillingEmail"></asp:RequiredFieldValidator>
				<br>
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:RegularExpressionValidator id="regexEmailValid" runat="server" ErrorMessage="Billing Email doesn't look right." ControlToValidate="txtBillingEmail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*[ ]*$"></asp:RegularExpressionValidator></p>
		</td>
	</tr>
	<!-- only display the rest if it is Wells Fargo -->
	
	<tr>
		<td style="WIDTH: 148px">Address *</td>
		<td><asp:TextBox id="txtBillingAddress1" runat="server"></asp:TextBox>
			<asp:RequiredFieldValidator id="Requiredfieldvalidator3" runat="server" ErrorMessage="Billing Address is REQUIRED" ControlToValidate="txtBillingAddress1"></asp:RequiredFieldValidator></td>
	</tr>
	<tr>
		<td style="WIDTH: 148px">Address 2</td>
		<td><asp:TextBox id="txtBillingAddress2" runat="server"></asp:TextBox></td>
	</tr>
	<tr>
		<td style="WIDTH: 148px">City *</td>
		<td><asp:TextBox id="txtBillingCity" runat="server" MaxLength="40"></asp:TextBox>
			<asp:RequiredFieldValidator id="Requiredfieldvalidator4" runat="server" ErrorMessage="Billing City or County  is REQUIRED" ControlToValidate="txtBillingCity"></asp:RequiredFieldValidator></td>
	</tr>
	<tr>
		<td style="WIDTH: 148px">State/Province *</td>
		<td><asp:DropDownList ID="cboBillingState" Runat="server">
				<asp:ListItem Value="AL">Alabama</asp:ListItem>
				<asp:ListItem Value="AK">Alaska</asp:ListItem>
				<asp:ListItem Value="AZ">Arizona</asp:ListItem>
				<asp:ListItem Value="AR">Arkansas</asp:ListItem>
				<asp:ListItem Selected="True" Value="CA">California</asp:ListItem>
				<asp:ListItem Value="CO">Colorado</asp:ListItem>
				<asp:ListItem Value="CT">Connecticut</asp:ListItem>
				<asp:ListItem Value="DE">Delaware</asp:ListItem>
				<asp:ListItem Value="FL">Florida</asp:ListItem>
				<asp:ListItem Value="GA">Georgia</asp:ListItem>
				<asp:ListItem Value="HI">Hawaii</asp:ListItem>
				<asp:ListItem Value="ID">Idaho</asp:ListItem>
				<asp:ListItem Value="IL">Illinois</asp:ListItem>
				<asp:ListItem Value="IN">Indiana</asp:ListItem>
				<asp:ListItem Value="IA">Iowa</asp:ListItem>
				<asp:ListItem Value="IN">Indiana</asp:ListItem>
				<asp:ListItem Value="KS">Kansas</asp:ListItem>
				<asp:ListItem Value="KY">Kentucky</asp:ListItem>
				<asp:ListItem Value="LA">Louisiana</asp:ListItem>
				<asp:ListItem Value="ME">Maine</asp:ListItem>
				<asp:ListItem Value="MD">Maryland</asp:ListItem>
				<asp:ListItem Value="MA">Massachusetts</asp:ListItem>
				<asp:ListItem Value="MI">Michigan</asp:ListItem>
				<asp:ListItem Value="MN">Minnesota</asp:ListItem>
				<asp:ListItem Value="MS">Mississippi</asp:ListItem>
				<asp:ListItem Value="MO">Missouri</asp:ListItem>
				<asp:ListItem Value="MT">Montana</asp:ListItem>
				<asp:ListItem Value="NE">Nebraska</asp:ListItem>
				<asp:ListItem Value="NV">Nevada</asp:ListItem>
				<asp:ListItem Value="NE">Nebraska</asp:ListItem>
				<asp:ListItem Value="NH">New Hampshire</asp:ListItem>
				<asp:ListItem Value="NJ">New Jersey</asp:ListItem>
				<asp:ListItem Value="NY">New York</asp:ListItem>
				<asp:ListItem Value="NC">North Carolina</asp:ListItem>
				<asp:ListItem Value="ND">North Dakota</asp:ListItem>
				<asp:ListItem Value="OH">Ohio</asp:ListItem>
				<asp:ListItem Value="OK">Oklahoma</asp:ListItem>
				<asp:ListItem Value="OR">Oregon</asp:ListItem>
				<asp:ListItem Value="PA">Pennsylvania</asp:ListItem>
				<asp:ListItem Value="RI">Rhode Island</asp:ListItem>
				<asp:ListItem Value="SC">South Carolina</asp:ListItem>
				<asp:ListItem Value="SD">South Dakota</asp:ListItem>
				<asp:ListItem Value="TN">Tennessee</asp:ListItem>
				<asp:ListItem Value="TX">Texas</asp:ListItem>
				<asp:ListItem Value="UT">Utah</asp:ListItem>
				<asp:ListItem Value="VT">Vermont</asp:ListItem>
				<asp:ListItem Value="VA">Virginia</asp:ListItem>
				<asp:ListItem Value="WA">Washington</asp:ListItem>
				<asp:ListItem Value="WV">West Virginia</asp:ListItem>
				<asp:ListItem Value="WI">Wisconsin</asp:ListItem>
				<asp:ListItem Value="WY">Wyoming</asp:ListItem>
			</asp:DropDownList>			
			</td>
	</tr>
	<tr>
		<td style="WIDTH: 148px">ZIP *</td>
		<td><asp:TextBox id="txtBillingZip" runat="server" MaxLength="20"></asp:TextBox>
			<asp:RequiredFieldValidator id="Requiredfieldvalidator6" runat="server" ErrorMessage="Billing ZIP  is REQUIRED" ControlToValidate="txtBillingZip"></asp:RequiredFieldValidator></td>
	</tr>
</table>
<br>
<b>Ship To:&nbsp;&nbsp;</b>&nbsp;
<asp:CheckBox id="chkSameAsBilling" runat="server" AutoPostBack="True" Text="Same as billing" OnCheckedChanged="chkSameAsBilling_CheckedChanged"></asp:CheckBox>
<table>
	<tr>
		<td style="WIDTH: 164px">Name *</td>
		<td><asp:TextBox id="txtShipToName" runat="server" MaxLength="100"></asp:TextBox>
			<asp:RequiredFieldValidator id="reqName" runat="server" ErrorMessage="Ship To Name is REQUIRED" ControlToValidate="txtShipToName"></asp:RequiredFieldValidator></td>
	</tr>	
	<tr>
		<td style="WIDTH: 164px">Address *</td>
		<td><asp:TextBox id="txtShipToAddress1" runat="server"></asp:TextBox>
			<asp:RequiredFieldValidator id="reqAddress" runat="server" ErrorMessage="Ship To Address is REQUIRED" ControlToValidate="txtShipToAddress1"></asp:RequiredFieldValidator></td>
	</tr>
	<tr>
		<td style="WIDTH: 164px">Address 2</td>
		<td><asp:TextBox id="txtShipToAddress2" runat="server"></asp:TextBox></td>
	</tr>
	<tr>
		<td style="WIDTH: 164px">City *</td>
		<td><asp:TextBox id="txtShipToCity" runat="server" MaxLength="40"></asp:TextBox>
			<asp:RequiredFieldValidator id="reqCity" runat="server" ErrorMessage="Ship To City or County  is REQUIRED" ControlToValidate="txtShipToCity"></asp:RequiredFieldValidator></td>
	</tr>
	<tr>
		<td style="WIDTH: 164px">State/Province *</td>
		<td><asp:DropDownList ID="cboShipToState" Runat="server" AutoPostBack="True">
				<asp:ListItem Value="AL">Alabama</asp:ListItem>
				<asp:ListItem Value="AK">Alaska</asp:ListItem>
				<asp:ListItem Value="AZ">Arizona</asp:ListItem>
				<asp:ListItem Value="AR">Arkansas</asp:ListItem>
				<asp:ListItem Selected="True" Value="CA">California</asp:ListItem>
				<asp:ListItem Value="CO">Colorado</asp:ListItem>
				<asp:ListItem Value="CT">Connecticut</asp:ListItem>
				<asp:ListItem Value="DE">Delaware</asp:ListItem>
				<asp:ListItem Value="FL">Florida</asp:ListItem>
				<asp:ListItem Value="GA">Georgia</asp:ListItem>
				<asp:ListItem Value="HI">Hawaii</asp:ListItem>
				<asp:ListItem Value="ID">Idaho</asp:ListItem>
				<asp:ListItem Value="IL">Illinois</asp:ListItem>
				<asp:ListItem Value="IN">Indiana</asp:ListItem>
				<asp:ListItem Value="IA">Iowa</asp:ListItem>
				<asp:ListItem Value="IN">Indiana</asp:ListItem>
				<asp:ListItem Value="KS">Kansas</asp:ListItem>
				<asp:ListItem Value="KY">Kentucky</asp:ListItem>
				<asp:ListItem Value="LA">Louisiana</asp:ListItem>
				<asp:ListItem Value="ME">Maine</asp:ListItem>
				<asp:ListItem Value="MD">Maryland</asp:ListItem>
				<asp:ListItem Value="MA">Massachusetts</asp:ListItem>
				<asp:ListItem Value="MI">Michigan</asp:ListItem>
				<asp:ListItem Value="MN">Minnesota</asp:ListItem>
				<asp:ListItem Value="MS">Mississippi</asp:ListItem>
				<asp:ListItem Value="MO">Missouri</asp:ListItem>
				<asp:ListItem Value="MT">Montana</asp:ListItem>
				<asp:ListItem Value="NE">Nebraska</asp:ListItem>
				<asp:ListItem Value="NV">Nevada</asp:ListItem>
				<asp:ListItem Value="NE">Nebraska</asp:ListItem>
				<asp:ListItem Value="NH">New Hampshire</asp:ListItem>
				<asp:ListItem Value="NJ">New Jersey</asp:ListItem>
				<asp:ListItem Value="NY">New York</asp:ListItem>
				<asp:ListItem Value="NC">North Carolina</asp:ListItem>
				<asp:ListItem Value="ND">North Dakota</asp:ListItem>
				<asp:ListItem Value="OH">Ohio</asp:ListItem>
				<asp:ListItem Value="OK">Oklahoma</asp:ListItem>
				<asp:ListItem Value="OR">Oregon</asp:ListItem>
				<asp:ListItem Value="PA">Pennsylvania</asp:ListItem>
				<asp:ListItem Value="RI">Rhode Island</asp:ListItem>
				<asp:ListItem Value="SC">South Carolina</asp:ListItem>
				<asp:ListItem Value="SD">South Dakota</asp:ListItem>
				<asp:ListItem Value="TN">Tennessee</asp:ListItem>
				<asp:ListItem Value="TX">Texas</asp:ListItem>
				<asp:ListItem Value="UT">Utah</asp:ListItem>
				<asp:ListItem Value="VT">Vermont</asp:ListItem>
				<asp:ListItem Value="VA">Virginia</asp:ListItem>
				<asp:ListItem Value="WA">Washington</asp:ListItem>
				<asp:ListItem Value="WV">West Virginia</asp:ListItem>
				<asp:ListItem Value="WI">Wisconsin</asp:ListItem>
				<asp:ListItem Value="WY">Wyoming</asp:ListItem>
			</asp:DropDownList></td>
	</tr>
	<tr>
		<td style="WIDTH: 164px">ZIP *</td>
		<td><asp:TextBox id="txtShipToZip" runat="server" MaxLength="20"></asp:TextBox>
			<asp:RequiredFieldValidator id="reqZip" runat="server" ErrorMessage="Ship To ZIP is REQUIRED" ControlToValidate="txtShipToZip"></asp:RequiredFieldValidator></td>
	</tr>
	<tr>
		<td style="WIDTH: 164px; height: 76px;" valign="top"><b>COMMENTS: (optional)</b></td>
		<td style="height: 76px"><asp:TextBox id="txtCustomerComments" runat="server" Width="391px" Height="66px" TextMode="MultiLine" Rows="4"></asp:TextBox></td>
	</tr>
</table>
<asp:Button id="btnPaypalCheckout" runat="server" Text="Pay Pal Checkout >>" OnClick="btnPaypalCheckout_Click" ></asp:Button>
</form>
</asp:Content>

